﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    public class RestaurantMenuNormDetail : BusinessObject
    {
        public RestaurantMenuNormDetail()
        {
            AddRule(new ValidateRequired("MenuNormID"));
            AddRule(new ValidateRequired("InventoryItemID"));
            AddRule(new ValidateRequired("InventoryItemName"));
            AddRule(new ValidateRequired("RestaurantID"));
            AddRule(new ValidateRequired("Quantity"));
        }

        public RestaurantMenuNormDetail(string menuNormDetailId, string menuNormId, string inventoryItemId, string inventoryItemName, string unitId, decimal unitPrice, string restaurantId, float quantity)
            : this()
        {
            MenuNormDetailID = menuNormDetailId;
            MenuNormID = menuNormId;
            InventoryItemID = inventoryItemId;
            InventoryItemName = inventoryItemName;
            unitId = UnitID;
            unitPrice = UnitPrice;
            restaurantId = RestaurantID;
            quantity = Quantity;
        }

        public string MenuNormDetailID { get; set; }

        public string MenuNormID { get; set; }

        public string InventoryItemID { get; set; }

        public string InventoryItemName { get; set; }

        public string UnitID { get; set; }

        public decimal UnitPrice { get; set; }

        public string RestaurantID { get; set; }

        public float Quantity { get; set; }
    }
}
